#!/usr/bin/env bash
# shell 目录
basepath=$(cd `dirname $0`; pwd)
#
cmdpath=$(cd .; pwd)
docker run -it --rm  --network=host --cpus=1 -m 512M --memory-swap=-1 -v $cmdpath:/go/src/app -w /go/src/app wolferhua/golang dep "$@"
# docker ps -a|grep Exited|awk '{print $1}'|xargs docker rm > /dev/null 2>&1


#sudo ln -s  ~/workspace/dockers/wuhua/bash/dep.sh /usr/bin/dep&& sudo chmod +x  /usr/bin/dep